package com.ruoyi.factorydata.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;


/**
 * 供应商数据对象 supplier_data
 *
 * @author ruoyi
 * @date 2025-06-30
 */
@Data
@TableName(resultMap = "com.ruoyi.factorydata.mapper.SupplierDataMapper.SupplierDataResult")
public class SupplierData extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 供应商主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商编码（唯一）
     */
    @Excel(name = "供应商编码", readConverterExp = "唯=一")
    private String supplierCode;

    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称")
    private String supplierName;

    /**
     * 供应商分类id
     */
    @Excel(name = "供应商分类id")
    private Long supplierType;

    @Excel(name = "默认仓库id")
    private Long defaultWarehouse;


    /**
     * 省份
     */
    @Excel(name = "省份")
    private String province;

    /**
     * 城市
     */
    @Excel(name = "城市")
    private String city;

    /**
     * 所属大区id
     */
    @Excel(name = "所属区")
    private String region;
    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    private String addressDetail;

    /**
     * 邮政编码
     */
    @Excel(name = "邮政编码")
    private String postalCode;

    /**
     * 供应商状态（0正常 1停用）
     */
    private String supplierStatus;

    /**
     * 联系人姓名
     */
    @Excel(name = "联系人姓名")
    private String contactName;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contactPhone;

    /**
     * 部门
     */
    @Excel(name = "部门")
    private String department;

    /**
     * 职位
     */
    @Excel(name = "职位")
    private String position;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;

    /**
     * qq
     */
    @Excel(name = "qq")
    private String qq;

    /**
     * 发票抬头
     */
    @Excel(name = "发票抬头")
    private String invoiceTitle;

    /**
     * 纳税人识别号
     */
    @Excel(name = "纳税人识别号")
    private String taxId;

    /**
     * 开户银行
     */
    @Excel(name = "开户银行")
    private String bankName;

    /**
     * 开户支行
     */
    @Excel(name = "开户支行")
    private String bankBranch;

    /**
     * 开户名称
     */
    @Excel(name = "开户名称")
    private String accountName;

    /**
     * 银行账号
     */
    @Excel(name = "银行账号")
    private String bankAccount;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /**
     * 版本号
     */
    @Excel(name = "版本号")
    @Version
    private Long version;

    /**
     * 搜索值
     */
    @TableField(exist = false)
    private String keyword;
}